<template>
  <div>
    <el-dropdown @command="handleCommand">
      <el-badge :value="12" class="item">
    <i class="el-icon-message-solid" @click="goto" />
    </el-badge>
  <el-dropdown-menu slot="dropdown">
    <el-dropdown-item command="a">黄金糕</el-dropdown-item>
    <el-dropdown-item command="b">狮子头</el-dropdown-item>
    <el-dropdown-item command="c">螺蛳粉</el-dropdown-item>
    <el-dropdown-item command="d" disabled>双皮奶</el-dropdown-item>
    <el-dropdown-item command="e" divided>蚵仔煎</el-dropdown-item>
  </el-dropdown-menu>
</el-dropdown>
  </div>
</template>

<script>


import { finance_get_num } from "@/api/join/index";

export default {
  name: "RuoYiDoc",
  data() {
    return {
      count:0 
    }
  },
  created() {
    finance_get_num({}).then(res => {
      if (res.code == 200) {
        this.url = res.data.url
      }
    })
  },
  methods: {
    goto() {
      window.open(this.url);
    },
  },
};
</script>
<style>
.el-badge__content.is-fixed{
  top: 7px;
}
</style>
